{include file="layout/header" title="会员列表" /}
{include file="layout/sidebar" /}
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            会员管理
            <small>会员列表</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 会员管理</a></li>
            <li class="active">会员列表</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <!-- /.box -->
        <div class="box">
            <div class="box-header with-border">
                <h3 class="box-title">会员列表 共有<strong style="color:red;">{$memberCount}</strong>个会员</h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
                 <!-- search form -->
                <form action="" method="get" class="sidebar-form0" style="width:80%;margin: 0 auto;">
                    <div class="input-group">
                        <input type="text" name="q" class="form-control" value="{$q ? $q : '';}" placeholder="请输入会员号或手机号...">
                        <span class="input-group-btn">
                            <button type="submit" id="search-btn" class="btn btn-flat">
                                <i class="fa fa-search"></i>
                            </button>
                        </span>
                    </div>
                </form>
                <!-- /.search form -->
                <table class="table table-bordered">
                    <tr>
                        <th>ID</th>
                        <th>会员编号</th>
                        <th>手机号码</th>                        
                        <th>操作</th>
                    </tr>
                    {volist name='list' id='member'}
                    <tr>
                        <td>{$member.id}</td>
                        <td>{$member.cardno}</td>
                        <td>{$member.mobile}</td>                        
                        <td>
                            <a href="{:url('Member/edit',['id' => $member.id,'page' => $page,'q' => $q])}" class="badge bg-green">编辑</a>
                            <a href="{:url('Member/del',['id' => $member.id])}" class="badge bg-red">删除</a>
                        </td>
                    </tr>
                    {/volist}
                </table>
            </div>
            <!-- /.box-body -->
            <div class="box-footer clearfix">
                <ul class="pagination pagination-sm no-margin pull-right">
                    {$list->render()}
                </ul>
            </div>
        </div>
        <!-- /.box -->
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->

{include file="layout/footer" /}